package com.phkj.qdh.ui.dialog

import android.content.Context
import android.widget.TextView
import com.hjq.shape.view.ShapeButton
import com.lxj.xpopup.core.CenterPopupView
import com.phkj.qdh.R

class FileoverTypedetailDialog(context:Context):CenterPopupView(context) {
    private var title: String = ""
    private var content: String = ""
    fun setTitle(s: String) {
        this.title = s
    }
    fun setContent(s: String) {
        this.content = s
    }
    override fun getImplLayoutId(): Int {
        return R.layout.dialog_fileover_detail
    }

    override fun onCreate() {
        super.onCreate()

        val tvTitle = findViewById<TextView>(R.id.tv_title)
        val tvContent= findViewById<TextView>(R.id.tv_content)
        tvTitle.text = title
        tvContent.text = content

        findViewById<ShapeButton>(R.id.btn_confirm).setOnClickListener {
            dismiss()
        }

    }

}